home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Bug in ODFContainer
- Sent: 6/26/96 6:25 PM
- Received: 6/26/96 6:31 PM
- From: Henri Lamiraux, lamiraux@apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Yes, you are right. We also found this bug a couple weeks ago.
-
-
-
- >Subject: Bug in ODFContainer Time:
- >5:05 PM
- >There is bug in ODFContainer that causes the selection to be drawn wrong.
- >When ODFContainer is the root part and its window is deactivated, it
- >correctly hides the selection handles. However, if it gets a draw event
- >while it is in the background (e.g. if it is hidden by a Finder window and
- >that window is closed), it will draw the selection handles even though the
- >window is not active. That wouldn't be so bad, except that when its
- >window is activated again, the selection draws backwards -- i.e. handles
- >are drawn when the embedded part is not selected and not drawn when it is
- >selected. It gets out of sync because CContainerView::Draw does not check
- >to see if the window is active before it draws the selection handles. The
- >following change to CContainerView::Draw appears to fix the problem:
- >
- >change this:
- > if (GetFrame(ev)->HasSelectionFocus(ev) &&
- >odFacet->GetCanvas(ev)->IsDynamic(ev))
- > {
- > fOutlinerFrame->GetSelection(ev)->RenderSelectionHandles(ev, vc);
- >
- >to this:
- > FW_CFrame *frame = GetFrame(ev);
- > if (frame->HasSelectionFocus(ev) && frame->GetWindow(ev)->IsActive(ev) &&
- >odFacet->GetCanvas(ev)->IsDynamic(ev))
- > {
- > fOutlinerFrame->GetSelection(ev)->RenderSelectionHandles(ev, vc);
- > }
- >
- >
- >Rob Cope
- >Eclipse Services
- >
-
-
- ........................................................................
- Henri Lamiraux lamiraux@apple.com
- Apple Computer, Inc. OpenDoc(tm) Development Framework
- ........................................................................
-
-